<?php 
	/*
		DreamCMS Version 1.0
		Developed by: Andrei Mikalov (Zeus)
		
		Thanks to Adam Davis
		Special thanks to Jonas Laursen & Craig Sledmore for help with the news system.
	*/
	require_once("models/config.php");
	$pagename= "Home"
?>

<?php include("layout_inc/header.php"); ?>
<div id="content_main">
           <h3><?php echo $sitename; ?> News & Updates</h3>
            <p>
            <p><?php
        $get_news = mysql_query("SELECT * FROM `DreamCMS_News` ORDER BY id DESC");
 
        while($row = mysql_fetch_assoc($get_news))
        {
                printf("<u><big>%s</big></u><br/>%s<br/><br/><font size=2>Author: %s<br/>Date: %s<br/><br/></font>", $row['title'], $row['content'], $row['author'], $row['date']);
        }
?></p>
        </div>
    
    <div id="nav_main">
        <h4>Navigation</h4>
        <ul>
          <?php include("layout_inc/right-nav.php"); ?>
        </ul>
    </div>
    
    
</div>

<?php include("layout_inc/footer.php"); ?>

</body>
</html>
